package com.hunanwenli.movie.mapper;

import com.hunanwenli.entity.KeepCommentary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface KeepCommentaryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(KeepCommentary record);

    int insertSelective(KeepCommentary record);

    KeepCommentary selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(KeepCommentary record);

    int updateByPrimaryKey(KeepCommentary record);

    int selectAllKeepByPid(Integer pid);

    int selectIsKeep(@Param("pid") Integer pid, @Param("uid") Integer uid);

    int deleteByUidAndPid(@Param("pid") Integer pid, @Param("uid") Integer uid);

    int selectAllByUid(Integer uid);
}